package com.example.combwyaq.visualinterface.video.adapter;

import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.combwyaq.R;
import com.example.combwyaq.utils.GlideUtils;
import com.example.combwyaq.visualinterface.video.entity.VideoNewsEntity;
import org.jetbrains.annotations.NotNull;
public class SmallVideoAdapter extends BaseQuickAdapter<VideoNewsEntity.Values, BaseViewHolder> {
    public SmallVideoAdapter() {
        super(R.layout.item_small_video);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, VideoNewsEntity.Values values) {
        baseViewHolder.setText(R.id.small_item_title_tv,values.news_title);
        ImageView img = baseViewHolder.getView(R.id.small_item_cover_img);
        GlideUtils.loadMatchImg(values.medias.get(0).media_url,img);
    }
}
